<?php
/**
 * Created by PhpStorm.
 * User: HS032
 * Date: 2020/8/24
 * Time: 14:25
 */

namespace ticket\modules\frontend\controllers;


use yii\web\Controller;
use Yii;


class BasicController extends Controller
{
    protected $member_id;
    protected $integral;
    protected $openid;

    public function beforeAction($action)
    {

        if (Yii::$app->request->isPost){

        }



        if(isset(Yii::$app->session->get('memberInfo')->member_id)){
            $this->member_id = Yii::$app->session->get('memberInfo')->member_id;
            $this->integral = Yii::$app->session->get('memberInfo')->integral;
            $this->integral = 5000;
            $wechat_data = Yii::$app->session->get('memberInfo')->wechat;
            $this->openid = $wechat_data->wechat_openid;
        };
        return true;
    }


}